package com.wangzy.game;

import android.graphics.Rect;
import android.graphics.RectF;

/**
 * @ProjectName: SportBS
 * @Date: 2022/8/20
 * @Desc:
 */
public class GameRect extends RectF {

    public int width;
    public int height;

    public Rect rect;

    public Rect toRect() {

        if (null == rect) {
            rect = new Rect();
        }
        rect.left = (int) this.left;
        rect.top = (int) this.top;

        rect.right=rect.left+width;
        rect.bottom=rect.top+height;
        return rect;
    }
}